import 'package:yb_zsyiji_androidflutter_pro/YBJsonToModel/YBMapMiShuModel/YBMapMiShuSubModel.dart';

class YBMapMiShuModel {
  String name;
  String code;
  List<YBMapMiShuSubModel> children;

  YBMapMiShuModel({this.name,this.code});

  YBMapMiShuModel.fromJson(Map<String, dynamic> json){
    name = json['name'];
    code = json['code'];
    if (json['children'] != null){
      children = List<YBMapMiShuSubModel>();
      (json['children'] as List).forEach((element) {
         children.add(YBMapMiShuSubModel.fromJson(element));
      });
    }
  }

}